package com.smartum.mpr.client.services;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.smartum.mpr.shared.News;
import java.util.List;

public abstract interface NewsServiceAsync
{
  public abstract void getImages(AsyncCallback<List<News>> paramAsyncCallback);

  public abstract void addNews(String paramString1, String paramString2, String paramString3, AsyncCallback<List<News>> paramAsyncCallback);

  public abstract void delete(String paramString, AsyncCallback<List<News>> paramAsyncCallback);

  public abstract void updateNews(String paramString1, String paramString2, String paramString3, String paramString4, AsyncCallback<News> paramAsyncCallback);

  public static final class Util
  {
    private static NewsServiceAsync instance;

    public static final NewsServiceAsync getInstance()
    {
      if (instance == null)
      {
        instance = (NewsServiceAsync)GWT.create(NewsService.class);
      }
      return instance;
    }
  }
}